/**
 * @author YinHang
 */
;(function () {
	//
	function EnemyGroup(delay) {
		this.list = new LinkedList();
		this.delay = delay;
	};
	
	var Prototype = EnemyGroup.prototype;
	
	Prototype.add = function (enemy) {
		var node = this.list.add(enemy);
		enemy.setEnemyGroupNode(node);
	};
	
	Prototype.remove = function (enemy) {
		this.list.remove(enemy.getEnemyGroupNode());
	};
	
	Prototype.iterator = function () {
		return this.list.iterator();
	};
	
	window.EnemyGroup = EnemyGroup;
	
})();
